﻿// -----------------------------------------------------------------------
// <copyright file="CachingConfigurationSection.cs" company="EPAM Systems">
////Copyright (c) EPAM Systems, 2012. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------

namespace MBOP.Configuration.ConfigElements
{
	#region Usings

	using System.Configuration;

	#endregion

	/// <summary>
	/// Provides the caching settings from config file.
	/// </summary>
	public class CachingConfigurationSection : ConfigurationSection
	{
		#region Constants

		/// <summary>
		/// Represents caching configuration section name in config.
		/// </summary>
		public const string CACHING_CONFIGURATION_SECTION_NAME = "cachingConfiguration";

		#endregion

		/// <summary>
		/// Gets or sets the application cache manager.
		/// </summary>
		[ConfigurationProperty("cacheManager")]
		public CacheManagerElement CacheManager
		{
			get
			{
				return (CacheManagerElement)this["cacheManager"];
			}

			set
			{
				this["cacheManager"] = value;
			}
		}
	}
}
